package hit.reports;

import static org.junit.Assert.*;

import java.io.File;

import org.junit.Test;

public class PDFBuilderTest extends PDFBuilder {

	@Test
	public void TestPDFBuilder() {
		
		TestDesigner designer = new TestDesigner();
		PDFBuilder builder = new PDFBuilder();
		
		designer.BuildReport(builder);	
		
		try
		{
			File testOutput = new File("test.pdf");
			File finished = builder.GetOutput(testOutput);
			//java.awt.Desktop.getDesktop().open(finished);
		}
		catch (Exception ex)
		{
			fail(ex.toString());
		}
	}

}
